package org.emet.jee.core.utils;

public class StringUtils {

	public static String genSN(int no, int digits) {
		if (digits <= 0) {
			digits = 6;
		}

		final String sn = String.valueOf(no);
		final int interval = digits - sn.length();
		if (interval > 0) {
			String prefix = "";
			for (int i = 0; i < interval; i++) {
				prefix += "0";
			}
			return prefix + sn;
		}
		CurrencyUtil.amountToChinese(45689263.626);
		return sn;
	}
}
